package com.funo.main.service;

import com.funo.common.pojo.PageResult;
import com.funo.common.pojo.QueryCondition;
import com.funo.common.pojo.TreeNode;
import com.funo.main.entities.Role;
import com.funo.main.entities.User;
import com.funo.main.entities.UserRole;

/**
 * 角色管理业务接口类
 * 
 * @author zhengjs
 *
 */
public interface RoleService {
	Integer addRole(User user,Role role);
	void deleteRole(Role role);
	Integer updateRole(User user,Role role);
	Role getRole(String id);
	PageResult<Role> getRolePage(QueryCondition condition);
	void checkUserRole(UserRole userRole,boolean checked);
	TreeNode moduleTree();
	TreeNode userRoleTree(String id);	
}
